
//------------------------------------------------------------------------------

using Apps.Models;
using System;
using System.ComponentModel.DataAnnotations;
namespace Apps.Models.PUB
{

    public partial class PUB_CAR_OPERATEModel : Virtual_PUB_CARModel
    {
    }
    public partial class PUB_CARModel:Virtual_PUB_CARModel
	{
		
	}
    
    public class Virtual_PUB_CARModel
	{
		[Display(Name = "汽运货车编号")]
		public virtual string CAR_ID { get; set; }
		[Display(Name = "RFID卡号")]
		public virtual string RFID { get; set; }
		[Display(Name = "牌照号码"),Required, StringLength(8,ErrorMessage ="不是正确的车牌号,例:湘AA9999",MinimumLength =7)]
		public virtual string LPR { get; set; }
		[Display(Name = "驾驶员身份证"),RegularExpression(@"^\d{17}\d{0}[0-9Xx]$", ErrorMessage ="身份证号必须为18位有效数据")]
		public virtual string DRIVER_IDCARD { get; set; }
		[Display(Name = "手机"), RegularExpression(@"^\d{11}$", ErrorMessage = "手机必须为11位有效数字")]
		public virtual string DRIVER_PHONE { get; set; }
		[Display(Name = "额定载重"), Range(0, 10000, ErrorMessage = "{0}必须在{1}和{2}之间")]// RegularExpression(@"^[1-9]+(.[0-9]{1,3})?$", ErrorMessage = "额定载重必须大于0.")]
		public virtual Nullable<decimal> SPECIFIED_WEIGHT { get; set; }
		[Display(Name = "皮重"), Range(0, 10000, ErrorMessage = "{0}必须在{1}和{2}之间")]//RegularExpression(@"^[1-9]+(.[0-9]{1,3})?$", ErrorMessage = "皮重必须大于0.")]
		public virtual Nullable<decimal> TARE { get; set; }
		[Display(Name = "总长"), Range(0, 10000, ErrorMessage = "{0}必须在{1}和{2}之间")]//RegularExpression(@"^[1-9]+(.[0-9]{1,3})?$", ErrorMessage = "总长必须大于0.")]
        public virtual decimal? TOTLE_LENGTH { get; set; }
		[Display(Name = "总宽"), Range(0, 10000, ErrorMessage = "{0}必须在{1}和{2}之间")]//RegularExpression(@"^[1-9]+(.[0-9]{1,3})?$", ErrorMessage = "总宽必须大于0.")]
        public virtual decimal? TOTLE_WIDTH { get; set; }
		[Display(Name = "车厢长"), Range(0, 10000, ErrorMessage = "{0}必须在{1}和{2}之间")]//RegularExpression(@"^[1-9]+(.[0-9]{1,3})?$", ErrorMessage = "车厢长必须大于0.")]
        public virtual decimal? LENGTH { get; set; }
		[Display(Name = "车厢宽"), Range(0, 10000, ErrorMessage = "{0}必须在{1}和{2}之间")]//RegularExpression(@"^[1-9]+(.[0-9]{1,3})?$", ErrorMessage = "车厢宽必须大于0.")]
        public virtual decimal? WIDTH { get; set; }
		[Display(Name = "车底高(车厢离地最高点高度)"), Range(1.2, 2, ErrorMessage = "{0}必须在{1}m和{2}m之间")]//RegularExpression(@"^[1-9]+(.[0-9]{1,3})?$", ErrorMessage = "车厢高必须大于0.")]
        public virtual decimal? HEIGHT { get; set; }
		[Display(Name = "拉筋位置"),Required]
		public virtual string POSTIONS { get; set; }
		[Display(Name = "第一次注册用户")]
		public virtual string REGISTER_USER_ID { get; set; }
		[Display(Name = "登记时间"),Required]
		public virtual System.DateTime REGISTER_TIME { get; set; }
		[Display(Name = "最后一次更新用户")]
		public virtual string UPDATE_USER_ID { get; set; }
		[Display(Name = "最后一次更新时间")]
		public virtual Nullable<System.DateTime> UPDATE_TIME { get; set; }
		[Display(Name = "车辆状态")]
		public virtual int? STATUS { get; set; }
		[Display(Name = "注销时间")]
		public virtual Nullable<System.DateTime> UNREGISTER_TIME { get; set; }
		[Display(Name = "注销原因")]
		public virtual string UNREGISTER_REASON { get; set; }

        public virtual string DRIVER_NAME { get; set; }
        public virtual string UNREGISTER_USER_ID { get; set; }
        public virtual string CAR_TYPE { get; set; }
        [Display(Name = "车厢尺寸")]
        public virtual string CAR_SIZE { get; set; }
    }
}
